#coding:utf-8
from django.db import models
from lovewith.account.models import MtUser
from lovewith.website.models import Category



#订阅
class Subscribe(models.Model):
    keyword = models.CharField(max_length = 255, unique = True, verbose_name = u'关键词')
    cate = models.ForeignKey(Category, blank = True, null = True, verbose_name = u'分类')
    user = models.ForeignKey(MtUser, blank = True, null = True, verbose_name = u'分类')

    class Meta:
        verbose_name_plural = u'订阅'
        db_table = 'mt_subscribe'